Ad Widget

Collapse

zabbix agent not starting automatically on ubuntu`

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phampson
    Junior Member
    • Jul 2010
    • 12

    #1

    zabbix agent not starting automatically on ubuntu`

    Hello all

    Ive got zabbix agent 1.8.2 and ubuntu 10.10.

    My problem is that when the server is rebooted zabbix doesnt restart

    If I start zabbix up after the machine is backup it works

    ie cd /etc/init.d ; sudo ./zabbix-agent start works fine

    But in /etc/rc2.d S01zabbix-agent doesnt

    Ive moved it to S03 and it makes no difference. Infact by putting echos into the script Im pretty sure its not executing the script on startup

    Permissions for the zabbix-agent script in init.d are 755 root root

    Any ideas

    Paul
  • vrolok
    Junior Member
    • Jan 2011
    • 22

    #2
    Did you check fields "NAME=, PATH=, DAEMON=" in /etc/init.d/zabbix-agent file?

    Comment

    • phampson
      Junior Member
      • Jul 2010
      • 12

      #3
      Yes , its the same script that starts it once the machine is up.

      It really looks like for some reason the script isnt been run when it goes to run level 2. There are actually two other programs with the same problem webmin and simplehelp. I put displays at the start of the script to log when its run. They are run on shutdown but not start up.

      In the end today i wrote a little file which called all the problematic programs in S99. That didnt seem to run either for some reason.

      Comment

      • arrayown
        Junior Member
        • Jan 2017
        • 6

        #4
        This just happened to me on 2 servers with Ubuntu 16.04 Xenial: zabbix-agent 3.0.10 wouldn't autostart.

        To fix it, I had to enable zabbix-agent via systemctl tool.

        As root, run the following command:

        systemctl is-enabled zabbix-agent.service # Tells you if it's currently enabled
        systemctl enable zabbix-agent.service # Enables Zabbix Agent

        Hope this helps anyone coming to this page from Google

        Comment


        • ebonweaver
          ebonweaver commented
          Editing a comment
          Thank you! No idea why on one server the service was disabled on install when I have never had this issue before. It's been driving me insane that I had to manually start the service every reboot....
      • vesper1978
        Member
        • Nov 2016
        • 59

        #5
        Since you're on Ubuntu 10.10 (no systemd) try running this:

        sudo update-rc.d zabbix-agent enable

        Comment

        Working...